import { useVueFlow  } from '@vue-flow/core';
const { findNode } = useVueFlow();
// 默认节点组件的宽度
const NODE_DEFAULT_WIDTH = 350;

// 更改节点位置
export function changeNodePosition(targetNode) {
  const targetNodeInfo = findNode(targetNode.id);
  console.log(targetNodeInfo)
  targetNodeInfo.position = {
    x: targetNode.position.x + 50 + NODE_DEFAULT_WIDTH,
    y: targetNode.position.y
  }
}